Unhiding filename extension of exported files

Hi,


When exporting a file from Pages (PDF, DOCX…) the filename extension (.pdf, .docx…) is automatically hidden, even if it appears in the file save dialog. Since these are mostly files to be sent to collaborators on a PC, seeing the filename extension is very important.


Is there any way to force Pages to let these extensions visible?


Thank you!

Paolo

Mac mini, OS X Yosemite (10.10.3)

Posted on Sep 19, 2016 6:51 AM

Reply
10 replies

Sep 19, 2016 7:06 AM in response to PeterBreis0807

Hi Peter,


Before being the PC user's, the lack of filename extension is my own problem, since I have a list of files with the same name in the Finder (My Document.pages, My Document, My Document). The file icon is not always all that useful, especially if you use the list view.


The Export File dialog does not contain a Show file extension checkbox, at least in Yosemite. The extension is shown in the name field, but then is not shown in the Finder.


Paolo

Sep 19, 2016 2:37 PM in response to PaoloT.

There is a setting in Finder > Preferences > Advanced to show all file extensions. This preference exists in all versions of OS X at least as far back as Tiger, OS X 10.4.11 (the oldest version I have running on a Mac). The items in the window may be different with the different OS versions, but show all extensions is the first one in all versions I checked.


User uploaded file

Sep 19, 2016 2:37 PM in response to PaoloT.

Pages does not export with extensions shown, and there is no means to force it to do so.


Here is a short AppleScript that will unhide any hidden file extensions. Select the file(s) in a Finder window, and run the script. You can save the script as an application, or script, and double-click it to run it.


-- enable visible file extensions for selected files in Finder

tell application "Finder"

set sel to selection

if sel = {} then

display dialog "No items selected"

return

end if

repeat with aFile in sel

set extension hidden of aFile to false

end repeat

end tell

return

I also have an AppleScript that is voice activated, and all I have to do is speak "show extension" and the extension appears in real time on the selected file.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Unhiding filename extension of exported files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.